import { ObjCreate } from "../../common/ObjCreate";
import { GTileList } from "../../../../../com/mui/controls/GTileList";
import { ScrollBarDirection } from "../../../../../fl/controls/ScrollBarDirection";
import { ExchangeInfoRenderer } from "./ExchangeInfoRenderer";
import { ENpcEffect } from "../../../../../Message/Public/ENpcEffect";
import { GModuleEvent } from "../../../mvc/GModuleEvent";
import { DataProvider } from "../../../../../fl/data/DataProvider";
//class PlayerExchangePanel
    
    export  class PlayerExchangePanel /* flash.display.Sprite */
    {
        constructor()
        {
            
            this.init();
            return;
        }

        /* internal  */init(): void
        {
            var loc1=ObjCreate.createBg(7, 3, 390, 395, this);
            this._tileList = new GTileList();
            this._tileList.setSize(382, 395);
            this._tileList.columnWidth = 365;
            this._tileList.rowHeight = 100;
            this._tileList.direction = ScrollBarDirection.VERTICAL;
            this._tileList.horizontalGap = 0;
            this._tileList.verticalGap = 0;
            this._tileList.styleName = "TileList";
            this._tileList.setStyle("skin", new Object /* flash.display.Bitmap */());
            this._tileList.setStyle("cellRenderer", ExchangeInfoRenderer);
            this._tileList.move(12, 3);
            addChild(this._tileList);
            var loc2=[ENpcEffect._ENpcEffectItemExchangeShop1, ENpcEffect._ENpcEffectZhuXianPiecesExchange, ENpcEffect._ENpcEffectHonsExchange, ENpcEffect._ENpcEffectHonsServerExchange, GModuleEvent.GuildExchangType, ENpcEffect._ENpcEffectAthleticsExchange, ENpcEffect._ENpcEffectMoshiExchange];
            this._tileList.dataProvider = new DataProvider(loc2);
            this._tileList.drawNow();
            return;
        }

        /* internal */ /* var */_tileList: GTileList;
    }
